import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EBossType
    
    export  class EBossType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EBossType
        {
            return new EBossType(arg1);
        }

        public static __read(arg1: SerializeStream): EBossType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 20) 
            {
                throw new MarshalException();
            }
            return EBossType.convert(loc1);
        }

        public static /* const */_EBossTypeNomarl: int=0;

        public static /* const */_EBossTypeCollection: int=1;

        public static /* const */_EBossTypeStop: int=2;

        public static /* const */_EBossTypePass: int=3;

        public static /* const */_EBossTypeMount: int=4;

        public static /* const */_EBossTypeCoin: int=5;

        public static /* const */_EBossTypeTrap: int=6;

        public static /* const */_EBossTypeMarch: int=7;

        public static /* const */_EBossTypeMechine: int=8;

        public static /* const */_EBossTypeQuestion: int=9;

        public static /* const */_EBossTypeOre: int=10;

        public static /* const */_EBossTypeLifeBoss: int=11;

        public static /* const */_EBossTypeDefenseTower: int=12;

        public static /* const */_EBossTypeFeedBoss: int=13;

        public static /* const */_EBossTypeDropAttacked: int=14;

        public static /* const */_EBossTypeSpecialSummon: int=15;

        public static /* const */_EBossTypeLifeBossEx: int=16;

        public static /* const */_EBossTypePlant: int=17;

        public static /* const */_EBossTypeImpenetrableStop: int=18;

        public static /* const */_EBossTypeParade: int=19;

        public /* var */__value: int;
    }
